var _EsdDynamicTransformationScript={};	 

var _EsdDynamicTransformationScriptNavBlock={};//定义区域跳转类
_EsdDynamicTransformationScriptNavBlock.key={};
_EsdDynamicTransformationScriptNavBlock.selector={};
_EsdDynamicTransformationScriptNavBlock.sIndex = -1;
_EsdDynamicTransformationScriptNavBlock.maxIndex = -1;
_EsdDynamicTransformationScriptNavBlock.minIndex = 0;
//快捷键定义区
_EsdDynamicTransformationScriptNavBlock.key.top="alt+ctrl+shift+t"//(top)
_EsdDynamicTransformationScriptNavBlock.key.footer="alt+ctrl+shift+j"//(footer)
_EsdDynamicTransformationScriptNavBlock.key.main="alt+ctrl+shift+m"//(main)
_EsdDynamicTransformationScriptNavBlock.key.left="alt+ctrl+shift+l"//(left)
_EsdDynamicTransformationScriptNavBlock.key.right="alt+ctrl+shift+r"//(right)
_EsdDynamicTransformationScriptNavBlock.key.content="alt+ctrl+shift+c"//(content)
_EsdDynamicTransformationScriptNavBlock.key.down="alt+ctrl+shift+d"//(down)
_EsdDynamicTransformationScriptNavBlock.key.up="alt+ctrl+shift+u"//(up);

//定义跳转 使用jquery选择器语法	此部分选择器  其中main,left,right和content在各个页面的if判断语句中重写了
_EsdDynamicTransformationScriptNavBlock.selector.top=".top_box";
_EsdDynamicTransformationScriptNavBlock.selector.footer=".bottom_box";
_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262:eq(2)";
_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262:eq(2) .w716";
_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262:eq(2) .w515";
_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262:eq(2)";
 
$("*").focus(function(){
	$(this).css({"outline":"2px dashed red"});
});
$("*").blur(function(){
	$(this).css({"outline":"0px black"});
});

//保证所有a标签都有href
$("a").each(function(){

	var aHref = this.href;
	if( aHref=="" || aHref==undefined ){
			$(this).attr("href","javascript:void(0)");
	}
	
	//给a标签加title
	var aTitle = this.title;
	var aText = this.text;
	
	if( aTitle=="" || aTitle==undefined ){
		if( aText!="" || aText!=undefined ){
			$(this).attr("title",$.trim(aText));
		}
	}
	
});

//对应导航
$("a").focus(function(){
	 $(this).mouseover();
});

//img
$("img").each(function(){
	//给图片加alt/title
	var imgAlt = this.alt,
		imgTitle = this.title,
		imgSrc = this.src,
		parentText = this.parentElement.text;

	if(this.alt=="" || this.alt==undefined){
		if(imgTitle!="" && imgTitle!=undefined){
			$(this).attr("alt",imgTitle);
		}else if(parentText!="" && parentText!=undefined){
			$(this).attr("alt",parentText);
		}
	}
	if(this.title=="" || this.title==undefined){
		if(imgAlt!="" && imgAlt!=undefined){
			$(this).attr("title",imgAlt);
		}else if(parentText!="" && parentText!=undefined){
			$(this).attr("title",parentText);
		}
	}
})

$("img").each(function(){
	if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
		$(this).attr("title","图片");
		$(this).attr("alt","图片");
	}
})


// 当前url
_EsdDynamicTransformationScript.currentUrl = window.location.href;

// ***************	网站上部/导航栏等公共部分 begin	***************	//
	// input type为text,password类型的输入框处理
	// 预先定义几个常用的input title值
	_EsdDynamicTransformationScript.placeholderKeyword='请输入关键词搜索';
	_EsdDynamicTransformationScript.placeholderUsername='用户名';
	_EsdDynamicTransformationScript.placeholderPassword='密码';
	_EsdDynamicTransformationScript.placeholderSpecialText1='您对全省城市管理效能提升工作有何意见或建议';
	// 搜索框 对象
	_EsdDynamicTransformationScript.inputObject = $('input[name="searchword"]');
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});
	
	// 第一部分 导航栏 政务公开/互动交流/业务工作/机关党建  ----------- end
	//各个选项名称对应的内容数量
	_EsdDynamicTransformationScript.num1 = $(".nav_box .w1262 li:eq(1) b:eq(0) a").length-1;
	_EsdDynamicTransformationScript.num2 = $(".nav_box .w1262 li:eq(2) b:eq(0) a").length-1;
	_EsdDynamicTransformationScript.num3 = $(".nav_box .w1262 li:eq(3) b:eq(0) a").length-1;
	_EsdDynamicTransformationScript.num4 = $(".nav_box .w1262 li:eq(4) b:eq(0) a").length-1;
	
	//各个选项名称
	_EsdDynamicTransformationScript.esd1TagNum1 = $(".nav_box .w1262 li:eq(1) span:eq(0) a:eq(1)");
	_EsdDynamicTransformationScript.esd1TagNum2 = $(".nav_box .w1262 li:eq(2) span:eq(0) a:eq(1)");
	_EsdDynamicTransformationScript.esd1TagNum3 = $(".nav_box .w1262 li:eq(3) span:eq(0) a:eq(1)");
	_EsdDynamicTransformationScript.esd1TagNum4 = $(".nav_box .w1262 li:eq(4) span:eq(0) a:eq(1)");
	
	//各个选项中的第一个内容
	_EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".nav_box .w1262 li:eq(1) b:eq(0) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".nav_box .w1262 li:eq(2) b:eq(0) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum3Content1 = $(".nav_box .w1262 li:eq(3) b:eq(0) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum4Content1 = $(".nav_box .w1262 li:eq(4) b:eq(0) a:eq(0)");
	
	//各个选项中的最后一个内容
	_EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".nav_box .w1262 li:eq(1) b:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
	_EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".nav_box .w1262 li:eq(2) b:eq(0) a:eq("+_EsdDynamicTransformationScript.num2+")");
	_EsdDynamicTransformationScript.esd1TagNum3ContentN = $(".nav_box .w1262 li:eq(3) b:eq(0) a:eq("+_EsdDynamicTransformationScript.num3+")");
	_EsdDynamicTransformationScript.esd1TagNum4ContentN = $(".nav_box .w1262 li:eq(4) b:eq(0) a:eq("+_EsdDynamicTransformationScript.num4+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				console.log("1");
				_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
				console.log(document.activeElement);
				console.log("2");
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
		console.log("3");
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
		console.log("4");
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
		console.log("5");
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	//第二块
	_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
		$(document).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
		$(document).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
		$(document).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esd1TagNum3.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum3.blur(function () {
		$(document).unbind("keydown.keydown_3");
	});

	_EsdDynamicTransformationScript.esd1TagNum3Content1.focus(function () {
		$(document).bind("keydown.keydown_s3", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum3.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd1TagNum3Content1.blur(function () {
		$(document).unbind("keydown.keydown_s3");
	});

	_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus(function () {
		$(document).bind("keydown.keydown_e3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum3ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e3");
	});
	
	
	//第四块
	_EsdDynamicTransformationScript.esd1TagNum4.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum3.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum4Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum4.blur(function () {
		$(document).unbind("keydown.keydown_4");
	});
	// 第一部分 导航栏 政务公开/互动交流/业务工作/机关党建  ----------- end
	
// ***************	网站上部/导航栏等公共部分 end	***************	//


// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/'){
	
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262:eq(2)";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262:eq(2) .w716";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262:eq(2) .w515";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262:eq(2)";
	
	// 0. 幻灯片 ------- begin
	/*	轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	//轮播前的标签
	_EsdDynamicTransformationScript.num = $(".nav_box .w1262 li:eq(4) b p a").length-1;
	_EsdDynamicTransformationScript.esdTagFrontNum1 = $(".nav_box .w1262 li:eq(4) b p a:eq("+_EsdDynamicTransformationScript.num+")");

	//文字A标签
	_EsdDynamicTransformationScript.esdTagANum1 = $(".w716 .index_img .index_img_bd .tempWrap ul li:eq(1) p b a");
	_EsdDynamicTransformationScript.esdTagANum2 = $(".w716 .index_img .index_img_bd .tempWrap ul li:eq(2) p b a");
	_EsdDynamicTransformationScript.esdTagANum3 = $(".w716 .index_img .index_img_bd .tempWrap ul li:eq(3) p b a");
	_EsdDynamicTransformationScript.esdTagANum4 = $(".w716 .index_img .index_img_bd .tempWrap ul li:eq(4) p b a");
	_EsdDynamicTransformationScript.esdTagANum5 = $(".w716 .index_img .index_img_bd .tempWrap ul li:eq(5) p b a");

	//原点
	_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".w716 .index_img .index_img_hd ul li:eq(0)");
	_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".w716 .index_img .index_img_hd ul li:eq(1)");
	_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".w716 .index_img .index_img_hd ul li:eq(2)");
	_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".w716 .index_img .index_img_hd ul li:eq(3)");
	_EsdDynamicTransformationScript.esdTagCircleNum5 = $(".w716 .index_img .index_img_hd ul li:eq(4)");

	//轮播后的标签
	_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".w716 .index_img .index_more a");
	//轮播前的焦点
	_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
		$(document).bind("keydown.keydown_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum1.click();
				_EsdDynamicTransformationScript.esdTagANum1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
		$(document).unbind("keydown.keydown_0");
		$("a").mouseout();
	});
	
	

	//第一块
	_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdTagCircleNum1.click();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum2.click();
				_EsdDynamicTransformationScript.esdTagANum2.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
		$(document).unbind("keydown.keydown_1");
	});

	//第二块
	_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdTagCircleNum2.click();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum1.click();
				_EsdDynamicTransformationScript.esdTagANum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum3.click();
				_EsdDynamicTransformationScript.esdTagANum3.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdTagCircleNum3.click();
		$(document).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum2.click();
				_EsdDynamicTransformationScript.esdTagANum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum4.click();
				_EsdDynamicTransformationScript.esdTagANum4.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
		$(document).unbind("keydown.keydown_3");
	});
	
	//第四块
	_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
		_EsdDynamicTransformationScript.esdTagCircleNum4.click();
		$(document).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum3.click();
				_EsdDynamicTransformationScript.esdTagANum3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum5.click();
				_EsdDynamicTransformationScript.esdTagANum5.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
		$(document).unbind("keydown.keydown_4");
	});
	
	//第五块
	_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdTagCircleNum5.click();
		$(document).bind("keydown.keydown_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum4.click();
				_EsdDynamicTransformationScript.esdTagANum4.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
		$(document).unbind("keydown.keydown_5");
	});
	
	//轮播后的焦点
	_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
		
		$(document).bind("keydown.keydown_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum5.click();
				_EsdDynamicTransformationScript.esdTagANum5.focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
		$(document).unbind("keydown.keydown_6");
	});
	// 0. 幻灯片 ------- end
	
	//第二部分	文件/解读/通知公告
	//各个选项名称对应的内容数量
	_EsdDynamicTransformationScript.num5 = $(".w1262 .line2 .w702 dd:eq(0) ul li").length-1;
	_EsdDynamicTransformationScript.num6 = $(".w1262 .line2 .w702 dd:eq(1) ul li").length-1;
	_EsdDynamicTransformationScript.num7 = $(".w1262 .line2 .w702 dd:eq(2) ul li").length-1;

	//各个选项名称
	_EsdDynamicTransformationScript.esd2TagNum1 = $(".w1262 .line2 .w702 .bt_ty a:eq(0)");
	_EsdDynamicTransformationScript.esd2TagNum2 = $(".w1262 .line2 .w702 .bt_ty a:eq(1)");
	_EsdDynamicTransformationScript.esd2TagNum3 = $(".w1262 .line2 .w702 .bt_ty a:eq(2)");

	//各个选项中的第一个内容
	_EsdDynamicTransformationScript.esd2TagNum1Content1 = $(".w1262 .line2 .w702 dd:eq(0) ul li:eq(0) a");
	_EsdDynamicTransformationScript.esd2TagNum2Content1 = $(".w1262 .line2 .w702 dd:eq(1) ul li:eq(0) a");
	_EsdDynamicTransformationScript.esd2TagNum3Content1 = $(".w1262 .line2 .w702 dd:eq(2) ul li:eq(0) a");

	//各个选项中的最后一个内容
	_EsdDynamicTransformationScript.esd2TagNum1ContentN = $(".w1262 .line2 .w702 dd:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num5+") a");
	_EsdDynamicTransformationScript.esd2TagNum2ContentN = $(".w1262 .line2 .w702 dd:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num6+") a");
	_EsdDynamicTransformationScript.esd2TagNum3ContentN = $(".w1262 .line2 .w702 dd:eq(2) ul li:eq("+_EsdDynamicTransformationScript.num7+") a");

	//第一块
	_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
		console.log("1-0");
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	//第二块
	_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
		console.log(2);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd2TagNum2Content1.focus(function () {
		$(document).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd2TagNum2Content1.blur(function () {
		$(document).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus(function () {
		$(document).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd2TagNum2ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e2");
	});

	//第三块
	_EsdDynamicTransformationScript.esd2TagNum3.focus(function (e) {
		console.log(3);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagNum3.blur(function () {
		$(document).unbind("keydown.keydown_3");
	});

	// 第三部分	营商环境建设：工作动态/先进典型/营商环境投诉举报
	//各个选项名称对应的内容数量
	_EsdDynamicTransformationScript.num8 = $(".line3 .w1262 .w702 dd:eq(0) ul li").length-1;
	_EsdDynamicTransformationScript.num9 = $(".line3 .w1262 .w702 dd:eq(1) ul li").length-1;
	_EsdDynamicTransformationScript.num10= $(".line3 .w1262 .w702 dd:eq(2) ul li").length-1;

	//各个选项名称
	_EsdDynamicTransformationScript.esd3TagNum1 = $(".line3 .w1262 .w702 .bt_ty p a:eq(0)");
	_EsdDynamicTransformationScript.esd3TagNum2 = $(".line3 .w1262 .w702 .bt_ty p a:eq(1)");
	_EsdDynamicTransformationScript.esd3TagNum3 = $(".line3 .w1262 .w702 .bt_ty p a:eq(2)");

	//各个选项中的第一个内容
	_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".line3 .w1262 .w702 dd:eq(0) ul li:eq(0) a");
	_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".line3 .w1262 .w702 dd:eq(1) ul li:eq(0) a");
	_EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".line3 .w1262 .w515 .bt_ty a:eq(0)");

	//各个选项中的最后一个内容
	_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".line3 .w1262 .w702 dd:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num8+") a");
	_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".line3 .w1262 .w702 dd:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num9+") a");
	_EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".line3 .w1262 .w702 dd:eq(2) ul li:eq("+_EsdDynamicTransformationScript.num10+") a");

	// 第三部分	第1个tab 工作动态
	_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	// 第三部分	第2个tab 先进典型
	_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
		$(document).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
		$(document).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
		$(document).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e2");
	});

	// 第三部分	第3个tab 营商环境投诉举报
	_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
		$(document).unbind("keydown.keydown_3");
	});	

	// 第四部分	放管服改革：工作动态/政策措施
	//各个选项名称对应的内容数量
	_EsdDynamicTransformationScript.num11 = $(".line-fgfgg .w1262 .w702 dd:eq(0) ul li").length-1;
	_EsdDynamicTransformationScript.num12 = $(".line-fgfgg .w1262 .w702 dd:eq(1) ul li").length-1;

	//各个选项名称
	_EsdDynamicTransformationScript.esd4TagNum1 = $(".line-fgfgg .w1262 .w702 .bt_ty p a:eq(0)");
	_EsdDynamicTransformationScript.esd4TagNum2 = $(".line-fgfgg .w1262 .w702 .bt_ty p a:eq(1)");

	//各个选项中的第一个内容
	_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".line-fgfgg .w1262 .w702 dd:eq(0) ul li:eq(0) a");
	_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".line-fgfgg .w1262 .w702 dd:eq(1) ul li:eq(0) a");

	//各个选项中的最后一个内容
	_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".line-fgfgg .w1262 .w702 dd:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num11+") a");
	_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".line-fgfgg .w1262 .w702 dd:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num12+") a");

	// 第四部分	第1个tab 工作动态
	_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
		
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});

	// 第四部分	第2个tab 政策措施
	_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});


	// 第五部分 重要信息转载的：国务院/省政府 
	//	各个选项名称
	_EsdDynamicTransformationScript.esdTabXXZZTitle1 = $(".line2 .w515 .bt_ty p:eq(0) a:eq(0)");
	_EsdDynamicTransformationScript.esdTabXXZZTitle2 = $(".line2 .w515 .bt_ty p:eq(0) a:eq(1)");
	/*	alert('_EsdDynamicTransformationScript.esdTabXXZZTitle1: ' + $(_EsdDynamicTransformationScript.esdTabXXZZTitle1).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabXXZZTitle2: ' + $(_EsdDynamicTransformationScript.esdTabXXZZTitle2).html() + '\n'
		);	*/

	// 各个选项中的第一个内容
	_EsdDynamicTransformationScript.esdTabXXZZTitle1Content1 = $("iframe:eq(0)").contents().find('#testUl a:first');
	_EsdDynamicTransformationScript.esdTabXXZZTitle2Content1 = $("iframe:eq(1)").contents().find('#testUl a:first');
	/*	alert('_EsdDynamicTransformationScript.esdTabXXZZTitle1Content1: ' + $(_EsdDynamicTransformationScript.esdTabXXZZTitle1Content1).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabXXZZTitle2Content1: ' + $(_EsdDynamicTransformationScript.esdTabXXZZTitle2Content1).html() + '\n'
		);	*/
	// 各个选项中的最后一个内容
	_EsdDynamicTransformationScript.esdTabXXZZTitle1ContentN = $("iframe:eq(0)").contents().find('#testUl a:last');
	_EsdDynamicTransformationScript.esdTabXXZZTitle2ContentN = $("iframe:eq(1)").contents().find('#testUl a:last');
	/*	alert('_EsdDynamicTransformationScript.esdTabXXZZTitle1ContentN: ' + $(_EsdDynamicTransformationScript.esdTabXXZZTitle1ContentN).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabXXZZTitle2ContentN: ' + $(_EsdDynamicTransformationScript.esdTabXXZZTitle2ContentN).html() + '\n'
		);	*/
		
	// 第五部分 第1个tab	国务院
	_EsdDynamicTransformationScript.esdTabXXZZTitle1.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_xxzz_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabXXZZTitle1Content1.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabXXZZTitle1.blur(function () {
		$(document).unbind("keydown.keydown_xxzz_1");
	});

	_EsdDynamicTransformationScript.esdTabXXZZTitle1Content1.focus(function () {
		$(this).bind("keydown.keydown_xxzz_1_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabXXZZTitle1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabXXZZTitle1Content1.blur(function () {
		$(this).unbind("keydown.keydown_xxzz_1_1");
	});

	_EsdDynamicTransformationScript.esdTabXXZZTitle1ContentN.focus(function () {
		console.log('_EsdDynamicTransformationScript.esdTabXXZZTitle1ContentN.focus');
		$(this).bind("keydown.keydown_xxzz_1_n", function (e) {
			console.log('e.shiftKey: ' + e.shiftKey + ', e.keyCode: ' + e.keyCode);
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabXXZZTitle2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabXXZZTitle1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_xxzz_1_n");
	});

	// 第五部分 第2个tab 省政府
	_EsdDynamicTransformationScript.esdTabXXZZTitle2.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_xxzz_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabXXZZTitle1.mouseover();
				_EsdDynamicTransformationScript.esdTabXXZZTitle1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabXXZZTitle2Content1.focus();
			//	console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabXXZZTitle2.blur(function () {
		$(document).unbind("keydown.keydown_xxzz_2");
	});
	_EsdDynamicTransformationScript.esdTabXXZZTitle2Content1.focus(function () {
		$(this).bind("keydown.keydown_xxzz_2_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabXXZZTitle2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabXXZZTitle2Content1.blur(function () {
		$(this).unbind("keydown.keydown_xxzz_2_1");
	});
}
// ***************	网站首页 end	***************	//

// ***************	二级页面之 政务公开 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/zwgk1/'){

	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".nr_box";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".nr_box .w584";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".nr_box .w624";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".nr_box .ofh";
	
	// 1. 政策文件/解读 选项卡  ------------ begin
	// 各个tab选项卡 title名称
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title = $(".xxk_zwgk:eq(0) dt a:eq(0)");	// 政策文件 title
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title_more = $(".xxk_zwgk:eq(0) dt a:eq(2)");	// 政策文件 title后的更多按钮
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title = $(".xxk_zwgk:eq(0) dt a:eq(1)"); // 解读 title
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title_more = $(".xxk_zwgk:eq(0) dt a:eq(3)"); // 解读 title后的更多按钮
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title).html() + '\n'
		+ '_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title_more: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title_more).html() + '\n'
		+ '_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title).html() + '\n'
		+ '_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title_more: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title_more).html() + '\n'
	);	*/
	
	// 各个选项卡列表中 第一个内容
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentFirst = $(".xxk_zwgk:eq(0) dd:eq(0) a:first");
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentFirst = $(".xxk_zwgk:eq(0) dd:eq(1) a:first");
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentFirst: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentFirst).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentFirst: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentFirst).html() + '\n'
	);	*/
	
	// 各个选项卡列表中 最后一个内容
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentLast = $(".xxk_zwgk:eq(0) dd:eq(0) a:last");
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentLast = $(".xxk_zwgk:eq(0) dd:eq(1) a:last");
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentLast: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentLast).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentLast: ' + $(_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentLast).html() + '\n'
	);	*/
	
	// 1. 第1个tab 政策文件 title
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title.focus(function (e) {
		$(this).mouseover();
		$(document).bind("keydown.keydown_zwgk_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title_more.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_1");
	});
	// 政策文件 title后的更多按钮
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title_more.focus(function (e) {
		$(document).bind("keydown.keydown_zwgk_1_more", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title_more.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_1_more");
	});
	// 政策文件 列表第一项
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentFirst.focus(function () {
		$(document).bind("keydown.keydown_zwgk_1_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title_more.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentFirst.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_1_1");
	});
	//  政策文件 列表最后一项
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentLast.focus(function () {
		$(document).bind("keydown.keydown_zwgk_1_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentLast.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_1_n");
	});
	
	// 1. 第2个tab 解读 title
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title.focus(function (e) {
		$(this).mouseover();
		$(document).bind("keydown.keydown_zwgk_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_title.mouseover();
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_1_contentLast.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title_more.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_2");
	});
	// 解读 title后的更多按钮
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title_more.focus(function (e) {
		$(document).bind("keydown.keydown_zwgk_2_more", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title_more.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_2_more");
	});
	// 解读 列表第一项
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentFirst.focus(function () {
		$(document).bind("keydown.keydown_zwgk_2_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_title_more.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentFirst.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_2_1");
	});
	// 解读 列表最后一项
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentLast.focus(function () {
		$(document).bind("keydown.keydown_zwgk_2_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				// _EsdDynamicTransformationScript.esdTabZsj_zwgk_3_title.focus();
				// return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_zwgk_2_contentLast.blur(function () {
		$(document).unbind("keydown.keydown_zwgk_2_n");
	});
	// 1. 政策文件/解读 选项卡  ------------ begin

}
// ***************	二级页面之 政务公开 end	***************	//

// ***************	二级页面之 政务公开下面的 领导信息 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/zwgk1/jld/'){

	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".nr_box";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".nr_box .w584";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".nr_box .w624";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".nr_box .ofh";
}
// ***************	二级页面之 政务公开下面的 领导信息 end	***************	//

// ***************	二级页面之 政务公开下面的 主要职责和机构设置/政策文件/解读/通知公告 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/zwgk1/zyzzjnsjg/' 
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/zwgk1/zcwj/' 
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/zwgk1/jd/' 
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/zwgk1/tzgg/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".nr_box";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".nr_box .er_box";
}
// ***************	二级页面之 政务公开下面的 主要职责和机构设置/政策文件/解读/通知公告 end	***************	//

// ***************	二级页面之 互动交流 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/hdjl/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262 .w707";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262 .w515";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262 .ofh";
	
	// input type为text,password类型的输入框处理
	// 预先定义几个常用的input title值
	_EsdDynamicTransformationScript.placeholderLetterTitle='标题';
	_EsdDynamicTransformationScript.placeholderLetterName='姓名';
	_EsdDynamicTransformationScript.placeholderLetterTelephone='联系电话';
	_EsdDynamicTransformationScript.placeholderLetterCelllPhone='手机';
	_EsdDynamicTransformationScript.placeholderLetterEmail='电子邮件';
	_EsdDynamicTransformationScript.placeholderLetterAddress='地址';
	_EsdDynamicTransformationScript.placeholderLetterPostNumber='邮政编码';
	_EsdDynamicTransformationScript.placeholderLetterContent='内容';
		
	// 标题 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(19)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterTitle, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterTitle});
	// 姓名 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(20)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterName, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterName});
	// 联系电话 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(21)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterTelephone, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterTelephone});
	// 手机 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(22)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterCelllPhone, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterCelllPhone});
	// 电子邮件 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(23)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterEmail, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterEmail});
	// 地址 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(24)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterAddress, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterAddress});
	// 邮政编码 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(25)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterPostNumber, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterPostNumber});
	// 内容 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("span:eq(0)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterContent, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterContent});

	// 1. 我要留言/留言选登 选项卡  ------------ begin
	// 各个tab选项卡 title名称
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title = $(".xxk_dc dt p a:eq(0)");	// 我要留言 title
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title = $(".xxk_dc dt p a:eq(1)"); // 留言选登 title
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title).html() + '\n'
		+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title).html() + '\n'
	);	*/
	
	// 各个选项卡列表中 第一个内容
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst = $('iframe:eq(0)').contents().find("input:eq(19)");
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst = $(".xxk_dc dd:eq(1) a:first");
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst).html() + '\n'
	);	*/
	
	// 各个选项卡列表中 最后一个内容
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast = $('iframe:eq(0)').contents().find("input:eq(27)");
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast = $(".xxk_dc dd:eq(1) a:last");
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast).html() + '\n'
	);	*/
	
	// 1. 第1个tab 我要留言 title
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.focus(function (e) {
		$(this).mouseover();
		$(document).bind("keydown.keydown_hdjl_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_1");
	});
	// 我要留言 列表第一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst.focus(function () {
		$(this).bind("keydown.keydown_hdjl_1_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst.blur(function () {
		$(this).unbind("keydown.keydown_hdjl_1_1");
	});
	//  我要留言 列表最后一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast.focus(function () {
		console.log('esdTabZsj_hdjl_1_contentLast.focus(): ' + $(this).val());
		$(this).bind("keydown.keydown_hdjl_1_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				console.log('esdTabZsj_hdjl_1_contentLast up');
			}else if (e.keyCode == 9) {
				console.log('esdTabZsj_hdjl_1_contentLast down');
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.mouseover();
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast.blur(function () {
		$(this).unbind("keydown.keydown_hdjl_1_n");
	});
	
	// 1. 第2个tab 留言选登 title
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.focus(function (e) {
		$(this).mouseover();
		$(document).bind("keydown.keydown_hdjl_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.mouseover();
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_2");
	});
	// 留言选登 列表第一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst.focus(function () {
		$(document).bind("keydown.keydown_hdjl_2_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_2_1");
	});
	// 留言选登 列表最后一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast.focus(function () {
		$(document).bind("keydown.keydown_hdjl_2_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				// _EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title.focus();
				// return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_2_n");
	});
	// 1. 我要留言/留言选登 选项卡  ------------ begin
	
	
}
// ***************	二级页面之 互动交流 end	***************	//

// ***************	二级页面之 互动交流下面的 局长信箱 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/hdjl/jzxx/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262 .ofh";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262 .ofh";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262 .ofh";
	
	// input type为text,password类型的输入框处理
	// 预先定义几个常用的input title值
	_EsdDynamicTransformationScript.placeholderLetterTitle='标题';
	_EsdDynamicTransformationScript.placeholderLetterName='姓名';
	_EsdDynamicTransformationScript.placeholderLetterTelephone='联系电话';
	_EsdDynamicTransformationScript.placeholderLetterCelllPhone='手机';
	_EsdDynamicTransformationScript.placeholderLetterEmail='电子邮件';
	_EsdDynamicTransformationScript.placeholderLetterAddress='地址';
	_EsdDynamicTransformationScript.placeholderLetterPostNumber='邮政编码';
	_EsdDynamicTransformationScript.placeholderLetterContent='内容';
		
	// 标题 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(19)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterTitle, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterTitle});
	// 姓名 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(20)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterName, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterName});
	// 联系电话 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(21)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterTelephone, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterTelephone});
	// 手机 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(22)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterCelllPhone, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterCelllPhone});
	// 电子邮件 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(23)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterEmail, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterEmail});
	// 地址 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(24)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterAddress, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterAddress});
	// 邮政编码 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("input:eq(25)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterPostNumber, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterPostNumber});
	// 内容 对象
	_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find("span:eq(0)");
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderLetterContent, 'placeholder':_EsdDynamicTransformationScript.placeholderLetterContent});

}
// ***************	二级页面之 互动交流下面的 局长信箱 end	***************	//

// ***************	二级页面之 互动交流下面的 意见征集 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/hdjl/yjzj/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".nr_box";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".nr_box .ofh";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".nr_box .ofh";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".nr_box .ofh";
	
}
// ***************	二级页面之 互动交流下面的 意见征集 end	***************	//

// ***************	二级页面之 互动交流下面的 营商环境投诉举报 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/hdjl/tsjb/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262:eq(2)";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262:eq(2) iframe:eq(0)";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262:eq(2) iframe:eq(0)";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262:eq(2) iframe:eq(0)";
	
}
// ***************	二级页面之 互动交流下面的 营商环境投诉举报 end	***************	//

// ***************	二级页面之 互动交流下面的 纪检监察 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/hdjl/jjjc/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".nr_box";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".nr_box .er_box";
	
}
// ***************	二级页面之 互动交流下面的 纪检监察 end	***************	//

// ***************	二级页面之 业务工作 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/ywgz/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262 .w707";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262 .w515";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262 .ofh";
	
	// 1. 工作动态/先进典型/营商环境投诉举报 选项卡  ------------ begin
	// 各个tab选项卡 title名称
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title = $(".xxk_dc dt p a:eq(0)");	// 工作动态 title
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title = $(".xxk_dc dt p a:eq(1)"); // 先进典型 title
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title = $(".xxk_dc dt p a:eq(2)"); // 营商环境投诉举报 title
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title).html() + '\n'
		+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title).html() + '\n'
		+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title).html() + '\n'
	);	*/
	
	// 各个选项卡列表中 第一个内容
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst = $(".xxk_dc dd:eq(0) a:first");
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst = $(".xxk_dc dd:eq(1) a:first");
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentFirst = $(".xxk_dc dd:eq(2) a:first");
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentFirst: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentFirst).html() + '\n'
	);	*/
	
	// 各个选项卡列表中 最后一个内容
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast = $(".xxk_dc dd:eq(0) a:last");
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast = $(".xxk_dc dd:eq(1) a:last");
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentLast = $(".xxk_dc dd:eq(2) a:last");
	/*	alert('_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast).html() + '\n'
			+ '_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentLast: ' + $(_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentLast).html() + '\n'
	);	*/
	
	// 1. 第1个tab 工作动态 title
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.focus(function (e) {
		$(this).mouseover();
		$(document).bind("keydown.keydown_hdjl_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_1");
	});
	// 工作动态 列表第一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst.focus(function () {
		$(this).bind("keydown.keydown_hdjl_1_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentFirst.blur(function () {
		$(this).unbind("keydown.keydown_hdjl_1_1");
	});
	//  工作动态 列表最后一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast.focus(function () {
		console.log('esdTabZsj_hdjl_1_contentLast.focus(): ' + $(this).val());
		$(this).bind("keydown.keydown_hdjl_1_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				console.log('esdTabZsj_hdjl_1_contentLast up');
			}else if (e.keyCode == 9) {
				console.log('esdTabZsj_hdjl_1_contentLast down');
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.mouseover();
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast.blur(function () {
		$(this).unbind("keydown.keydown_hdjl_1_n");
	});
	
	// 1. 第2个tab 先进典型 title
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.focus(function (e) {
		$(this).mouseover();
		$(document).bind("keydown.keydown_hdjl_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_title.mouseover();
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_1_contentLast.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_2");
	});
	// 先进典型 列表第一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst.focus(function () {
		$(document).bind("keydown.keydown_hdjl_2_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentFirst.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_2_1");
	});
	// 先进典型 列表最后一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast.focus(function () {
		$(document).bind("keydown.keydown_hdjl_2_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				console.log('esdTabZsj_hdjl_2_contentLast up');
			}else if (e.keyCode == 9) {
				console.log('esdTabZsj_hdjl_2_contentLast down');
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title.mouseover();
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_2_n");
	});
	// 1. 第3个tab 营商环境投诉举报 title //  营商环境投诉举报 下面暂时 没有内容，所以用下面的过度
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title.focus(function (e) {
		$(this).mouseover();
		$(document).bind("keydown.keydown_hdjl_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_title.mouseover();
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_2_contentLast.focus();
				return false;
			}else if (e.keyCode == 9) {
				// _EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentFirst.focus();
				// return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_3");
	});
	
/*	// 营商环境投诉举报 列表第一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentFirst.focus(function () {
		$(document).bind("keydown.keydown_hdjl_3_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentFirst.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_3_1");
	});
	// 营商环境投诉举报 列表最后一项
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentLast.focus(function () {
		$(document).bind("keydown.keydown_hdjl_3_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				// _EsdDynamicTransformationScript.esdTabZsj_hdjl_3_title.focus();
				// return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabZsj_hdjl_3_contentLast.blur(function () {
		$(document).unbind("keydown.keydown_hdjl_3_n");
	});
	*/
	// 1. 工作动态/先进典型/营商环境投诉举报 选项卡  ------------ begin
	
	
}
// ***************	二级页面之 业务工作 end	***************	//

// ***************	二级页面之 业务工作下面的 营商环境建设/优惠政策展示/数字化建设 页面 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/ywgz/yshjjs/' 
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/ywgz/yhzczs/'
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/ywgz/szhjs/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".nr_box";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".nr_box .er_box";
	
	
}
// ***************	二级页面之 业务工作下面的 营商环境建设/优惠政策展示/数字化建设 页面 end	***************	//


// ***************	二级页面之 机关党建 页面 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/jgdj1/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262 .w600";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262 .w604";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262 .ofh";
	
	// 0. 幻灯片 ------- begin
	/*	轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationPreATag = $(".w1262 .ofh .w600 .bt_ty:eq(0) a:eq(1)");
// 	alert('_EsdDynamicTransformationScript.esdRotationPreATag' + $(_EsdDynamicTransformationScript.esdRotationPreATag).html());
	//文字A标签
	_EsdDynamicTransformationScript.esdRotationATag1 = $(".w600 .tempWrap ul li:eq(1) p b a:first");
	_EsdDynamicTransformationScript.esdRotationATag2 = $(".w600 .tempWrap ul li:eq(2) p b a:first");
	_EsdDynamicTransformationScript.esdRotationATag3 = $(".w600 .tempWrap ul li:eq(3) p b a:first");
	_EsdDynamicTransformationScript.esdRotationATag4 = $(".w600 .tempWrap ul li:eq(4) p b a:first");

	//原点
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint1 = $(".w600 .index_img .index_img_hd ul li:eq(0)");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint2 = $(".w600 .index_img .index_img_hd ul li:eq(1)");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint3 = $(".w600 .index_img .index_img_hd ul li:eq(2)");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint4 = $(".w600 .index_img .index_img_hd ul li:eq(3)");

	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationAfterATag = $(".w600 .list_ty:eq(0) li a:first");
	// alert('_EsdDynamicTransformationScript.esdRotationAfterATag: ' + $(_EsdDynamicTransformationScript.esdRotationAfterATag).html());
	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationPreATag.focus(function (e) {
		$(document).bind("keydown.keydown_jgdj_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
				_EsdDynamicTransformationScript.esdRotationATag1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationPreATag.blur(function () {
		$(document).unbind("keydown.keydown_jgdj_0");
		$("a").mouseout();
	});

	//第一块
	_EsdDynamicTransformationScript.esdRotationATag1.focus(function (e) {
		_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
		$(document).bind("keydown.keydown_jgdj_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationPreATag.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
				_EsdDynamicTransformationScript.esdRotationATag2.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationATag1.blur(function () {
		$(document).unbind("keydown.keydown_jgdj_1");
	});

	//第二块
	_EsdDynamicTransformationScript.esdRotationATag2.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
		$(document).bind("keydown.keydown_jgdj_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
				_EsdDynamicTransformationScript.esdRotationATag1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
				_EsdDynamicTransformationScript.esdRotationATag3.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationATag2.blur(function () {
		$(document).unbind("keydown.keydown_jgdj_2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esdRotationATag3.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
		$(document).bind("keydown.keydown_jgdj_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
				_EsdDynamicTransformationScript.esdRotationATag2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationATag3.blur(function () {
		$(document).unbind("keydown.keydown_jgdj_3");
	});
	
	//第四块
	_EsdDynamicTransformationScript.esdRotationATag4.focus(function (e) {
		_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
		$(document).bind("keydown.keydown_jgdj_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
				_EsdDynamicTransformationScript.esdRotationATag3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAfterATag.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationATag4.blur(function () {
		$(document).unbind("keydown.keydown_jgdj_4");
	});
	
/*	//第五块
	_EsdDynamicTransformationScript.esdRotationATag5.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdRotationCircleNumPoint5.click();
		$(document).bind("keydown.keydown_jgdj_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAfterATag.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationATag5.blur(function () {
		$(document).unbind("keydown.keydown_jgdj_5");
	});	*/
	
	//轮播后的焦点
	_EsdDynamicTransformationScript.esdRotationAfterATag.focus(function (e) {
		
		$(document).bind("keydown.keydown_jgdj_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationAfterATag.blur(function () {
		$(document).unbind("keydown.keydown_jgdj_6");
	});
	// 0. 幻灯片 ------- end
}
// ***************	二级页面之 机关党建 页面 end	***************	//


// ***************	二级页面之 机关党建下面的 党建工作/党风廉政/机关工会/学习园地 页面 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/jgdj1/djgz/' 
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/jgdj1/dflz/'
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/jgdj1/ghgz/'
	|| _EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/jgdj1/xxyd/'){
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScriptNavBlock.selector.main=".nr_box";
	_EsdDynamicTransformationScriptNavBlock.selector.left=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.right=".nr_box .er_box";
	_EsdDynamicTransformationScriptNavBlock.selector.content=".nr_box .er_box";
	
	
}
// ***************	二级页面之 机关党建下面的 党建工作/党风廉政/机关工会/学习园地 页面 end	***************	//

/*区域跳转JS --begin
插件支持：jquery、mousetrap
功能：为避免与浏览器快捷键冲突默认全部采用3+1组合键（alt+ctrl+shift）+自定义键
	头部跳转		alt+ctrl+shift+T(top)
	底部跳转		alt+ctrl+shift+j(footer)
	主要区域跳转	alt+ctrl+shift+M(main)
	左侧跳转		alt+ctrl+shift+L(left)
	右侧跳转		alt+ctrl+shift+R(right)
	正文跳转		alt+ctrl+shift+C(content)
	区域导航正跳转	alt+ctrl+shift+D(up)
	区域导航逆跳转	alt+ctrl+shift+U(down);

*/
/*
var _EsdDynamicTransformationScriptNavBlock={};//定义区域跳转类
_EsdDynamicTransformationScriptNavBlock.key={};
_EsdDynamicTransformationScriptNavBlock.selector={};
_EsdDynamicTransformationScriptNavBlock.sIndex = -1;
_EsdDynamicTransformationScriptNavBlock.maxIndex = -1;
_EsdDynamicTransformationScriptNavBlock.minIndex = 0;
//快捷键定义区
_EsdDynamicTransformationScriptNavBlock.key.top="alt+ctrl+shift+t"//(top)
_EsdDynamicTransformationScriptNavBlock.key.footer="alt+ctrl+shift+j"//(footer)
_EsdDynamicTransformationScriptNavBlock.key.main="alt+ctrl+shift+m"//(main)
_EsdDynamicTransformationScriptNavBlock.key.left="alt+ctrl+shift+l"//(left)
_EsdDynamicTransformationScriptNavBlock.key.right="alt+ctrl+shift+r"//(right)
_EsdDynamicTransformationScriptNavBlock.key.content="alt+ctrl+shift+c"//(content)
_EsdDynamicTransformationScriptNavBlock.key.down="alt+ctrl+shift+d"//(down)
_EsdDynamicTransformationScriptNavBlock.key.up="alt+ctrl+shift+u"//(up);

//定义跳转 使用jquery选择器语法	此部分选择器  其中main,left,right和content在各个页面的if判断语句中重写了
_EsdDynamicTransformationScriptNavBlock.selector.top=".top_box";
_EsdDynamicTransformationScriptNavBlock.selector.footer=".bottom_box";
_EsdDynamicTransformationScriptNavBlock.selector.main=".w1262:eq(2)";
_EsdDynamicTransformationScriptNavBlock.selector.left=".w1262:eq(2) .w716";
_EsdDynamicTransformationScriptNavBlock.selector.right=".w1262:eq(2) .w515";
_EsdDynamicTransformationScriptNavBlock.selector.content=".w1262:eq(2)";
*/
_EsdDynamicTransformationScriptNavBlock.selector.activate=".navBlock"; //通畅激活的采用class因为会激活多个
/*	alert('_EsdDynamicTransformationScriptNavBlock.selector.top: ' + $(_EsdDynamicTransformationScriptNavBlock.selector.top).html() + '\n' + 
'_EsdDynamicTransformationScriptNavBlock.selector.footer: ' + $(_EsdDynamicTransformationScriptNavBlock.selector.footer).html() + '\n' + 
'_EsdDynamicTransformationScriptNavBlock.selector.main: ' + $(_EsdDynamicTransformationScriptNavBlock.selector.main).html() + '\n' + 
'_EsdDynamicTransformationScriptNavBlock.selector.left: ' + $(_EsdDynamicTransformationScriptNavBlock.selector.left).html() + '\n' + 
'_EsdDynamicTransformationScriptNavBlock.selector.right: ' + $(_EsdDynamicTransformationScriptNavBlock.selector.right).html() + '\n' + 
'_EsdDynamicTransformationScriptNavBlock.selector.content: ' + $(_EsdDynamicTransformationScriptNavBlock.selector.content).html() + '\n' + 
'_EsdDynamicTransformationScriptNavBlock.selector.activate: ' + $(_EsdDynamicTransformationScriptNavBlock.selector.activate).html());
*/
//功能变量声明区
_EsdDynamicTransformationScriptNavBlock.debug=true;


//嵌入了mousetrap代码，如需升级版本删除下载新版本后单独加载即可
/* mousetrap v1.6.0 craig.is/killing/mice */
(function(r,t,g){function u(a,b,h){a.addEventListener?a.addEventListener(b,h,!1):a.attachEvent("on"+b,h)}function y(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return k[a.which]?k[a.which]:p[a.which]?p[a.which]:String.fromCharCode(a.which).toLowerCase()}function D(a){var b=[];a.shiftKey&&b.push("shift");a.altKey&&b.push("alt");a.ctrlKey&&b.push("ctrl");a.metaKey&&b.push("meta");return b}function v(a){return"shift"==a||"ctrl"==a||"alt"==a||
"meta"==a}function z(a,b){var h,c,e,g=[];h=a;"+"===h?h=["+"]:(h=h.replace(/\+{2}/g,"+plus"),h=h.split("+"));for(e=0;e<h.length;++e)c=h[e],A[c]&&(c=A[c]),b&&"keypress"!=b&&B[c]&&(c=B[c],g.push("shift")),v(c)&&g.push(c);h=c;e=b;if(!e){if(!n){n={};for(var l in k)95<l&&112>l||k.hasOwnProperty(l)&&(n[k[l]]=l)}e=n[h]?"keydown":"keypress"}"keypress"==e&&g.length&&(e="keydown");return{key:c,modifiers:g,action:e}}function C(a,b){return null===a||a===t?!1:a===b?!0:C(a.parentNode,b)}function c(a){function b(a){a=
a||{};var b=!1,m;for(m in n)a[m]?b=!0:n[m]=0;b||(w=!1)}function h(a,b,m,f,c,h){var g,e,k=[],l=m.type;if(!d._callbacks[a])return[];"keyup"==l&&v(a)&&(b=[a]);for(g=0;g<d._callbacks[a].length;++g)if(e=d._callbacks[a][g],(f||!e.seq||n[e.seq]==e.level)&&l==e.action){var q;(q="keypress"==l&&!m.metaKey&&!m.ctrlKey)||(q=e.modifiers,q=b.sort().join(",")===q.sort().join(","));q&&(q=f&&e.seq==f&&e.level==h,(!f&&e.combo==c||q)&&d._callbacks[a].splice(g,1),k.push(e))}return k}function g(a,b,m,f){d.stopCallback(b,
b.target||b.srcElement,m,f)||!1!==a(b,m)||(b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0)}function e(a){"number"!==typeof a.which&&(a.which=a.keyCode);var b=y(a);b&&("keyup"==a.type&&x===b?x=!1:d.handleKey(b,D(a),a))}function k(a,c,m,f){function e(c){return function(){w=c;++n[a];clearTimeout(r);r=setTimeout(b,1E3)}}function h(c){g(m,c,a);"keyup"!==f&&(x=y(c));setTimeout(b,10)}for(var d=n[a]=0;d<c.length;++d){var p=d+1===c.length?h:e(f||
z(c[d+1]).action);l(c[d],p,f,a,d)}}function l(a,b,c,f,e){d._directMap[a+":"+c]=b;a=a.replace(/\s+/g," ");var g=a.split(" ");1<g.length?k(a,g,b,c):(c=z(a,c),d._callbacks[c.key]=d._callbacks[c.key]||[],h(c.key,c.modifiers,{type:c.action},f,a,e),d._callbacks[c.key][f?"unshift":"push"]({callback:b,modifiers:c.modifiers,action:c.action,seq:f,level:e,combo:a}))}var d=this;a=a||t;if(!(d instanceof c))return new c(a);d.target=a;d._callbacks={};d._directMap={};var n={},r,x=!1,p=!1,w=!1;d._handleKey=function(a,
c,e){var f=h(a,c,e),d;c={};var k=0,l=!1;for(d=0;d<f.length;++d)f[d].seq&&(k=Math.max(k,f[d].level));for(d=0;d<f.length;++d)f[d].seq?f[d].level==k&&(l=!0,c[f[d].seq]=1,g(f[d].callback,e,f[d].combo,f[d].seq)):l||g(f[d].callback,e,f[d].combo);f="keypress"==e.type&&p;e.type!=w||v(a)||f||b(c);p=l&&"keydown"==e.type};d._bindMultiple=function(a,b,c){for(var d=0;d<a.length;++d)l(a[d],b,c)};u(a,"keypress",e);u(a,"keydown",e);u(a,"keyup",e)}if(r){var k={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",
18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},p={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},B={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},A={option:"alt",command:"meta","return":"enter",
escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},n;for(g=1;20>g;++g)k[111+g]="f"+g;for(g=0;9>=g;++g)k[g+96]=g;c.prototype.bind=function(a,b,c){a=a instanceof Array?a:[a];this._bindMultiple.call(this,a,b,c);return this};c.prototype.unbind=function(a,b){return this.bind.call(this,a,function(){},b)};c.prototype.trigger=function(a,b){if(this._directMap[a+":"+b])this._directMap[a+":"+b]({},a);return this};c.prototype.reset=function(){this._callbacks={};this._directMap=
{};return this};c.prototype.stopCallback=function(a,b){return-1<(" "+b.className+" ").indexOf(" mousetrap ")||C(b,this.target)?!1:"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable};c.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};c.addKeycodes=function(a){for(var b in a)a.hasOwnProperty(b)&&(k[b]=a[b]);n=null};c.init=function(){var a=c(t),b;for(b in a)"_"!==b.charAt(0)&&(c[b]=function(b){return function(){return a[b].apply(a,arguments)}}(b))};
c.init();r.Mousetrap=c;"undefined"!==typeof module&&module.exports&&(module.exports=c);"function"===typeof define&&define.amd&&define(function(){return c})}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?document:null);

//嵌入了mousetrap代码结束

//主要代码区域
$(document).ready(function () {
	if(_EsdDynamicTransformationScriptNavBlock.debug==true){
		//如果开启调试模式，添加调试绘制矩形边线
		$("body").append("<div id='show_top' class='lineshow'></div>");
		$("body").append("<div id='show_bottom' class='lineshow'></div>");
		$("body").append("<div id='show_left' class='lineshow'></div>");
		$("body").append("<div id='show_right' class='lineshow'></div>");
		$(".lineshow").css({"display":"none"});
	}
	
	//初始化轮训所有需要跳转的块
	$(_EsdDynamicTransformationScriptNavBlock.selector.activate).each(function (index, ehx) {
		_EsdDynamicTransformationScriptNavBlock.maxIndex++;
	});

	//前进
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.down, function() {//down
		if (_EsdDynamicTransformationScriptNavBlock.sIndex < _EsdDynamicTransformationScriptNavBlock.maxIndex) {
			_EsdDynamicTransformationScriptNavBlock.sIndex++;
			_EsdDynamicTransformationScriptNavBlock.keyShowSelect(_EsdDynamicTransformationScriptNavBlock.sIndex);
		}else{
			sIndex=0;
		}
		return false;
	});
	//后退
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.up, function() {//up
		if (_EsdDynamicTransformationScriptNavBlock.sIndex > _EsdDynamicTransformationScriptNavBlock.minIndex) {
			_EsdDynamicTransformationScriptNavBlock.sIndex--;
			_EsdDynamicTransformationScriptNavBlock.keyShowSelect(_EsdDynamicTransformationScriptNavBlock.sIndex);
		}else{
			_EsdDynamicTransformationScriptNavBlock.sIndex=0;
		}
		return false;
	});
	
	
	/**
	_EsdDynamicTransformationScriptNavBlock.key.top="alt+ctrl+shift+T"//(top)
	_EsdDynamicTransformationScriptNavBlock.key.footer="alt+ctrl+shift+j"//(footer)
	_EsdDynamicTransformationScriptNavBlock.key.main="alt+ctrl+shift+M"//(main)
	_EsdDynamicTransformationScriptNavBlock.key.left="alt+ctrl+shift+L"//(left)
	_EsdDynamicTransformationScriptNavBlock.key.right="alt+ctrl+shift+R"//(right)
	_EsdDynamicTransformationScriptNavBlock.key.content="alt+ctrl+shift+C"//(content)
	_EsdDynamicTransformationScriptNavBlock.key.down="alt+ctrl+shift+D"//(down)
	_EsdDynamicTransformationScriptNavBlock.key.up="alt+ctrl+shift+U"//(up);
	
	_EsdDynamicTransformationScriptNavBlock.selector.top="#header";
	_EsdDynamicTransformationScriptNavBlock.selector.footer="#footer";
	_EsdDynamicTransformationScriptNavBlock.selector.main="#main";
	_EsdDynamicTransformationScriptNavBlock.selector.left="#left";
	_EsdDynamicTransformationScriptNavBlock.selector.right="#right";
	_EsdDynamicTransformationScriptNavBlock.selector.content="#content";
	_EsdDynamicTransformationScriptNavBlock.selector.activate=".navBlock"; //通畅激活的采用class因为会激活多个
	**/
	
	//快捷键功能区域
	
	
	//跳转到头部
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.top, function() {
		_EsdDynamicTransformationScriptNavBlock.keySelectScroll(_EsdDynamicTransformationScriptNavBlock.selector.top);
		return false;
	});
	//跳转到底部
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.footer, function() {
		_EsdDynamicTransformationScriptNavBlock.keySelectScroll(_EsdDynamicTransformationScriptNavBlock.selector.footer);
		return false;
	});
	//跳转到主要区域
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.main, function() {
		_EsdDynamicTransformationScriptNavBlock.keySelectScroll(_EsdDynamicTransformationScriptNavBlock.selector.main);
		return false;
	});
	//跳转到左区域
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.left, function() {
		_EsdDynamicTransformationScriptNavBlock.keySelectScroll(_EsdDynamicTransformationScriptNavBlock.selector.left);
		return false;
	});
	//跳转到右区域
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.right, function() {
		_EsdDynamicTransformationScriptNavBlock.keySelectScroll(_EsdDynamicTransformationScriptNavBlock.selector.right);
		return false;
	});
	//跳转到正文区域
	Mousetrap.bind(_EsdDynamicTransformationScriptNavBlock.key.content, function() {
		_EsdDynamicTransformationScriptNavBlock.keySelectScroll(_EsdDynamicTransformationScriptNavBlock.selector.content);
		return false;
	});

});

_EsdDynamicTransformationScriptNavBlock.debugView=function (e){
	if(_EsdDynamicTransformationScriptNavBlock.debug==true){
		var x=$(e).offset();
		var w=parseInt($(e).css("width"));;
		var h=parseInt($(e).css("height"));
		$("#show_top").css({"z-index":"9999","border": "red 2px solid","position": "absolute","top":x.top,"left":x.left,"width":w,"height":"0px"});
		$("#show_bottom").css({"z-index":"9999","border": "red 2px solid","position": "absolute","top":x.top+h,"left":x.left,"width":w,"height":"0px"});
		$("#show_left").css({"z-index":"9999","border": "red 2px solid","position": "absolute","top":x.top,"left":x.left,"width":"0px","height":h});
		$("#show_right").css({"z-index":"9999","border": "red 2px solid","position": "absolute","top":x.top,"left":x.left+w,"width":"0px","height":h});
		$("html,body").animate({scrollTop : $("#show_top").offset().top}, 200);
		$(".lineshow").css({"display":"block"});
	}
}

//特定区域跳转
_EsdDynamicTransformationScriptNavBlock.keySelectScroll=function(id) {
	_EsdDynamicTransformationScriptNavBlock.debugView(id);
	$(id).find("a").each(function (index) {
		if (index == 0) {
			$(this).focus();
		}
	});
}
//导航跳转
_EsdDynamicTransformationScriptNavBlock.keyShowSelect=function(i) {
	$(_EsdDynamicTransformationScriptNavBlock.selector.activate).each(function (index, el) {
		if (i == index) {
			_EsdDynamicTransformationScriptNavBlock.debugView(el);
			$(el).find("a").each(function (i,e) {
				if (i == 0) {
					$(e).focus();
				}
			});

		}
	});
}
